// ============================================================================
// Name : MethodInfo.java
// Author : iron.yin@gmail.com
// Version : v1.0
// Copyright : RisingSun CO,.LTD
// Description : MethodInfo.java in Java
// ============================================================================
package cc.risingsun.wing.core;

import org.objectweb.asm.Type;



/**
 * 
 * @author iron.yin@gmail.com
 * @sina 2012-7-19
 */
public class WingMethod extends WingBase {
	private String[] exceptions;
	private WingParameter[] params;
	private String desc;
	private Type methodType;

	public WingMethod(Type methodType,String owner,String name, String desc, WingParameter... params) {
		super(owner,name);
		this.desc = desc;
		this.params = params;
		this.methodType=methodType;
	}
	
	public void setExceptions(String[] exceptions) {
		this.exceptions = exceptions;
	}
	
	public Type getReturnType(){
		return methodType.getReturnType();
	}

	/**
	 * @return the exceptions
	 */
	public String[] getExceptions() {
		return exceptions;
	}

	/**
	 * @return the params
	 */
	public WingParameter[] getParams() {
		return params;
	}

	/**
	 * @return the returnType
	 */
	public String getDesc() {
		return desc;
	}
}
